﻿@model MVCCom.Models.Urunler

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Create</title>
</head>
<body>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    
    @using (Html.BeginForm("Create","Login",FormMethod.Post,new { enctype = "multipart/form-data" })) {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
    
        <fieldset>
            <legend>Urunler</legend>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.UrunId)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UrunId)
                @Html.ValidationMessageFor(model => model.UrunId)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Adi)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Adi)
                @Html.ValidationMessageFor(model => model.Adi)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Fiyati)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Fiyati)
                @Html.ValidationMessageFor(model => model.Fiyati)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.KucukGorsel)
            </div>
            @*<div class="editor-field">
                @Html.EditorFor(model => model.KucukGorsel)
                @Html.ValidationMessageFor(model => model.KucukGorsel)
            </div>*@
            <div>
                <input type="file" name="KucukGorsel" accept="image/*" />
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.KategoriId)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.KategoriId)
                @Html.ValidationMessageFor(model => model.KategoriId)
            </div>
    
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
    }
    
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
